package com.bootdo.staticmask.dao;

import com.bootdo.staticmask.domain.MaskMethodDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 脱敏方法
 * @author lkg
 * @email lkggod@163.com
 * @date 2018-04-25 11:27:35
 */
@Mapper
public interface MaskMethodDao {

	MaskMethodDO get(Integer maskMethodId);
	
	List<MaskMethodDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(MaskMethodDO maskMethod);
	
	int update(MaskMethodDO maskMethod);
	
	int remove(Integer mask_method_id);
	
	int batchRemove(Integer[] maskMethodIds);

	@Select("select `mask_method_id`,`method_name`,`method_function` from mask_method")
	List<MaskMethodDO> findAll();
}
